home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
answrbok
/
8_6.lha
/
8_6
/
8_6_over.c
< prev
next >
Wrap
Text File
|
1993-08-08
|
358b
|
17 lines
* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
* The C++ Answer Book */
* Tony Hansen */
* All rights reserved. */
/ Handle both an uninitialized and a full buffer.
include <limits.h>
nt streambuf::overflow(int c)
if (allocate() == EOF)
return EOF;
if ((c != EOF) && (pptr < eptr))
*pptr++ = c;
return c & UCHAR_MAX;